home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Camelot
/
Camelot 098 (1990-12)(Swedish User Group of Amiga)(SE)(PD)[WB].zip
/
Camelot 098 (1990-12)(Swedish User Group of Amiga)(SE)(PD)[WB].adf
/
XLisp-Stat
/
Functions
/
integral.lsp
< prev
next >
Wrap
Lisp/Scheme
|
1990-10-11
|
151b
|
6 lines
;book p.94
(defun integral (f a b h)
(do ((integral 0 (+ integral (* h (funcall f x))))
(x (+ a (/ h 2)) (+ x h)))
((> x b) integral)))